/**
 * In me the tiger sniffs the rose.
 *
 * @Author:徐家政
 * @Date:2019-04-16 22:43
 */
package com.shiyu.demo.controller;

import com.shiyu.demo.service.PostListService;
import com.shiyu.demo.util.ResultData;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@CrossOrigin
public class PostListController {
    @Resource
    private PostListService postListService;
    @RequestMapping("/community/postlist")
    public ResultData getPostList(Integer offset){
        return postListService.getpostList(offset);
    }

}
